package com.homework.test1;

public class Test {
    public static void main(String[] args) {
        MyArrayList list = new MyArrayList();

        //---add()---
        list.add("张三");
        list.add("李四");
        list.add("王五");

        //---remove()---
        list.remove(1);

        //---set()---
        list.set(1,"赵六");

        //---get()---
        Object obj = list.get(1);
        System.out.println("[1] = " + obj);

        //---select()---
        Selector select = list.select();
        while(select.hashNext()){
            Object next = select.next();
            System.out.println(next);
        }

    }
}
